import request from '@/router/axios';

export const getPeopleData = (params) => {
    return request({
        url: '/api/screen/parkNum',
        method: 'get',
        params: {
            ...params,
        }
    })
}
export const getCarData = (params) => {
    return request({
        url: '/api/screen/carNum',
        method: 'get',
        params: {
            ...params,
        }
    })
}

// 考勤统计
export const getAttendanceData = (params) => {
    return request({
        url: '/api/screen/attendanceStatistics',
        method: 'get',
        params: {
            ...params,
        }
    })
}
// 设备情况统计
export const getEqiuipData = (params) => {
    return request({
        url: '/api/screen/equipmentInfo',
        method: 'get',
        params: {
            ...params,
        }
    })
}

// 今日告警数据
export const getTodayWarningData = (params) => {
    return request({
        url: '/api/screen/todayAlert',
        method: 'get',
        params: {
            ...params,
        }
    })
}

export const getWarningList = (params) => {
    return request({
        url: '/api/screen/eventAlert',
        method: 'get',
        params: {
            ...params,
        }
    })
}
// /根据设备组树获取视频配置格式
export const getVideoType = (params) => {
    return request({
        url: '/api/equipmentgrouptree/screenConfigForm',
        method: 'get',
        params: {
            ...params,
        }
    })
}
// 获取视频配置
export const getVideoList = (params) => {
    return request({
        url: '/api/equipmentgrouptree/screenConfig',
        method: 'get',
        params: {
            ...params,
        }
    })
}

// 获取告警事件汇总数据
export const getGatherData = (params) => {
    return request({
        url: '/api/screen/eventAlertSummary',
        method: 'get',
        params: {
            ...params,
        }
    })
}

// 获取月度警情趋势数据
export const getTrendData = (params) => {
    return request({
        url: '/api/screen/monthlyAlertTrend',
        method: 'get',
        params: {
            ...params,
        }
    })
}

// 智能搜索
export const smartSearch = (params) => {
    return request({
        url: '/api/screen/smartSearch',
        method: 'get',
        params: {
            ...params,
        }
    })
}